const { defineConfig } = require('@vue/cli-service')
module.exports = defineConfig({
  transpileDependencies: true,
  publicPath: './',
  productionSourceMap: false,
  devServer: {
    proxy: {
      '/api': {
        target: 'http://localhost:5000', // 设置代理目标服务器地址
        changeOrigin: true, // 开启跨域
        pathRewrite: {
          '^/api': '' // 重写请求路径，去掉/api前缀
        }
      }
    }
  }
})
